namespace Web.Control.Member.My.Settings
{
	using System;
	using System.Data;
	using System.Drawing;
	using System.Web;
	using System.Web.Security;
	using System.Web.UI.WebControls;
	using System.Web.UI.HtmlControls;
    using System.Text.RegularExpressions;
    using Lx.Web.Common.UI;
    using Lx.Web.Common.ControlsUI;
	using System.Collections;
	using System.IO;

    using BLF.WWW_User.Users;
    using Model.WWW_User.User;

    public class Email : BaseControl
    {
        protected string bum = "";
        protected string dum = "";
        protected override void OnLoad(EventArgs e)
        {
            if (HttpContext.Current.User.Identity.Name == "")
            {
                Page.Response.Redirect(LoginHost + "/User/login.htm?ReturnUrl=" + Page.Request.Url.AbsoluteUri);
            }

            bum = User.GetNewemail(HttpContext.Current.User.Identity.Name, out dum);
            if (bum == null || dum == null)
            {
                Page.Response.Redirect(LoginHost + "/User/login.htm?ReturnUrl=" + Page.Request.Url.AbsoluteUri);
            }

            base.OnLoad(e);
        }

       
    }
}
